package jupitermouse.site.spark.sync.v2.model

import java.util

import org.apache.spark.sql.SaveMode


/**
 * 设置
 *
 * @author renqiqiang
 * @since 1.0
 */
case class Setting(app: String, config: util.Map[String, String], source: Source, target: Target)

/**
 * 源
 */
case class Source(url: String, dbtable: String, properties: util.Map[String, String], partition: Partition)

/**
 * 目标
 */
case class Target(mode: SaveMode, dbtable: String, config: util.Map[String, String])

/**
 * 分区设置
 */
case class Partition(partitionColumn: String, dataFormat: String, lowerBound: String, upperBound: String, numPartitions:Long)



